package com.database.management.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

public interface BaseService<T, ID extends Serializable> {

	 void delete(ID id);

	T insert(T record);
	
	T update(T record);

	T findOne(ID id);
	
	List<T> findAll(Example<T> example, Sort sort);

	Page<T> findPage(Example<T> example, Pageable pageable);
	

}